package com.heima.utils.common;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @author 黄晏凯
 */
public class FileUtils {

    /**
     * 重资源流中读取第一行内容
     *
     * @param in 在
     * @return {@link String}
     * @throws IOException ioexception
     */
    public static String readFristLineFormResource(InputStream in) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        return br.readLine();
    }

}
